@echo off
echo 测试教师看板接口修复
echo ========================

echo 测试原始错误的接口调用:
curl -X GET "http://localhost:48080/admin-api/system/teacher-dashboard/get?teacherId=1001&classId=1&examId=1&comparisonExamIds=1%%2C2%%2C3" -H "Authorization: Bearer YOUR_TOKEN_HERE"

echo.
echo 测试其他正确的参数组合:
echo 1. 教师1001查看高三(1)班数据:
curl -X GET "http://localhost:48080/admin-api/system/teacher-dashboard/get?teacherId=1001&classId=1&examId=1&comparisonExamIds=1%%2C2%%2C3" -H "Authorization: Bearer YOUR_TOKEN_HERE"

echo.
echo 2. 教师1002查看高三(2)班数据:
curl -X GET "http://localhost:48080/admin-api/system/teacher-dashboard/get?teacherId=1002&classId=2&examId=4&comparisonExamIds=4%%2C5" -H "Authorization: Bearer YOUR_TOKEN_HERE"

echo.
echo 3. 教师1003查看高三(3)班数据:
curl -X GET "http://localhost:48080/admin-api/system/teacher-dashboard/get?teacherId=1003&classId=3&examId=6&comparisonExamIds=6%%2C7" -H "Authorization: Bearer YOUR_TOKEN_HERE"

echo.
echo 注意：请将 YOUR_TOKEN_HERE 替换为实际的认证token
echo 修复说明：
echo 1. 添加了对旧数据格式的兼容性支持
echo 2. 当class_ids字段为空时，会检查class_id字段
echo 3. 确保考试与班级的关联关系验证正确
pause